package top.lywivan.mm.dao;

import top.lywivan.mm.pojo.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionDao {
    Long findTotalCount(Question question);

    List<Question> findListByPage(@Param("offset") Integer offset,@Param("pageSize") Integer pageSize,@Param("question") Question question);

    void addQuestion(Question question);

    void updateQuestion(Question question);

    Question findQuestionById(Integer questionId);

    Long findClassicTotalCount(@Param("question") Question question);

    List<Question> findClassicListByPage(@Param("offset") Integer offset,@Param("pageSize")  Integer pageSize,@Param("question")  Question question);
}
